<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态排序表格</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="container">
        <h1>员工信息表</h1>
        <table id="sortable-table">
            <thead>
                <tr>
                    <th><input type="checkbox" id="select-all"></th>
                    <th class="sortable" data-sort="id">编号</th>
                    <th class="sortable" data-sort="name">姓名</th>
                    <th class="sortable" data-sort="age">年龄</th>
                    <th class="sortable" data-sort="position">职位</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><input type="checkbox" class="row-checkbox"></td>
                    <td>3</td>
                    <td>王同学</td>
                    <td>24</td>
                    <td>C++程序员</td>
                </tr>
                <tr>
                    <td><input type="checkbox" class="row-checkbox"></td>
                    <td>5</td>
                    <td>张同学</td>
                    <td>24</td>
                    <td>WEB前端</td>
                </tr>
                <tr>
                    <td><input type="checkbox" class="row-checkbox"></td>
                    <td>22</td>
                    <td>玛丽</td>
                    <td>30</td>
                    <td>测试员</td>
                </tr>
                <tr>
                    <td><input type="checkbox" class="row-checkbox"></td>
                    <td>6</td>
                    <td>艾伦</td>
                    <td>21</td>
                    <td>交互设计师</td>
                </tr>
                <tr>
                    <td><input type="checkbox" class="row-checkbox"></td>
                    <td>17</td>
                    <td>小明同学</td>
                    <td>28</td>
                    <td>PHP工程师</td>
                </tr>
            </tbody>
        </table>
    </div>
    <script src="js/script.js"></script>
</body>
</html> 